<template>
  <scroll>
    <div>
      <cart-list-item v-for="(item,index) in cartList2" :index='index' :key="item.iid" :item-info="item" @minus="min"></cart-list-item>
    </div>
  </scroll>
</template>

<script>
  import Scroll from 'common/scroll/Scroll'
  import CartListItem from './CartListItem'

	export default { 
		name: "CartList",
    components: {
		  Scroll, CartListItem
    },
    props: {
		  cartList2: {
		    type: Array,
        default() {
		      return []
        }
      } 
    },
    methods: {
      min(index){
         this.cartList.splice(this.index,1)
      }
    },
	}
</script>

<style scoped>

</style>
